//
//  CAOrderListApi.m
//  LNH
//
//  Created by twentylx on 2018/2/14.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CAOrderListApi.h"

@implementation CAOrderListApi {
    NSInteger _page;
    NSString *_status;
}

- (instancetype) initWithPage:(NSInteger)page Status:(NSString *)status {
    self = [super init];
    if (self) {
        _page = page;
        _status = status;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"status":_status,
             @"page":[NSString stringWithFormat:@"%ld", _page],
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@order",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@order",BASE_SERVICE_DOMAIN];
    
    
}

@end
